home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17763 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: in2.uu.net!demos!usenet
  2. From: Alexey Ruzin <00alex@dbs.demos.su>
  3. Newsgroups: comp.lang.c++,comp.lang.c
  4. Subject: Re: Please don't shoot me (newbie question)
  5. Date: Wed, 17 Apr 1996 16:51:48 +0400
  6. Organization: Demos Online Service
  7. Message-ID: <3174E964.3D2B@dbs.demos.su>
  8. References: <4l0puc$oa9@interport.net>
  9. NNTP-Posting-Host: 00alex@dbs.demos.su
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.4 sun4m)
  14.  
  15. Tom Metzger wrote:
  16. > I just started lurking here, so please don't shoot me if this has been asked
  17. > a hundred times before, but....
  18. > Can someone explain to me, in clear terms, what the difference is between
  19. > C and C++  ?  Everytime I've asked someone, the answer is so cryptic, it's
  20. > not funny.
  21. > Thanks in advance,
  22. > Tom
  23.  
  24. Hi, Tom
  25.  
  26. I don't think that i can clearly explain difference between C & C++, but
  27. I hope I can show some advantages of C++.
  28.  
  29. 1. C++ inherit C (practically all is written on C will be compiled
  30.    with C++ compiler)
  31. 2. C is procedural language, other side C++ is object oriented
  32.    2.a) You specify data with methods (functions) operating with it data
  33.    2.b) You can use inheritance of objects (so Manager is derived
  34.         from Employee)
  35.    2.c) and so on...
  36. 3. More powerfull syntax (such as templates) let you spend less time 
  37.    on coding like objects and functions
  38. 4. 'EXCEPTIONS'!!!??? - it is better somebody else to explain
  39. 5. and few other less significant (i think) differences
  40.  
  41. P.S.
  42. What is hard to do with C -> do with C++ :)
  43.  
  44. Not so far I think I know something about C & C++ :)
  45.